package put.cs.two.hied.netflix;

/**
 * @author Mateusz Chrominski
 * 
 */
public class PutNetflixGenerator {
    private static final String QUALIFIER_PATH = "newQualifier.txt";
    
    private static final String QUALIFIER_RESULT = "qualifierResult.txt";
    
    private static final String QUALIFIER_RESULT2 = "qualifierResult2.txt";
    
    private static final String QUALIFIER_RESULT3 = "qualifierResult3.txt";

    private static final String TRAINING_SET_PATH = "training_set/training_set/";

    private static final String ROOT_PATH = "/home/ivas/netflix/orginal_data/";

    private static final String PROBE_PATH = "probe.txt";
    
    private static final String NEW_PROBE_PATH = "newProbe.txt";

    private static final String OUTPUT_DIRECTORY = "out/";

    public static void main(String[] args) {
    	System.out.println("Application started...");
    	
        ProbeReader reader = new ProbeReader(constructPath(PROBE_PATH));
        reader.readFile();
        reader.setNewProbeSet(10); // for 10%

        TrainingSetWriter writer = new TrainingSetWriter(constructPath(TRAINING_SET_PATH), reader);
        writer.setQualifyingFilePath(constructPath(QUALIFIER_PATH));
        writer.setProbeFilePath(constructPath(NEW_PROBE_PATH));
        writer.setQualifierResultFilePath(constructPath(QUALIFIER_RESULT));
        writer.setQualifierResult2FilePath(constructPath(QUALIFIER_RESULT2));
        writer.setQualifierResult3FilePath(constructPath(QUALIFIER_RESULT3));
        writer.rewrite(constructPath(OUTPUT_DIRECTORY));
    }

    private static String constructPath(String contextPath) {
        return ROOT_PATH + contextPath;
    }

}
